import _fetch from "api_liuhaojie/fetch";
/**
 * undefined
 * @param { Object } data 请求参数
 * {
 *   id undefined
 *   rank undefined
 * }
 */
export function sort(data) {
  return _fetch({
    url: "backend/goods/type/sort",
    method: "POST",
    data: data,
    headers: {}
  });
}
/**
 * undefined
 * @param { Object } data 请求参数
 * {
 *   id undefined
 * }
 */
export function publish(data) {
  return _fetch({
    url: "backend/goods/type/publish",
    method: "POST",
    data: data,
    headers: {}
  });
}
/**
 * undefined
 * @param { Object } data 请求参数
 * {
 *   creator undefined
 *   gmtModified undefined
 *   modifier undefined
 *   typeName undefined
 *   rank 排序越大越靠前
 *   id undefined
 *   gmtCreate undefined
 *   isHidden undefined
 * }
 */
export function saveType(data) {
  return _fetch({
    url: "backend/goods/type/saveType",
    method: "POST",
    data: data,
    headers: {}
  });
}
/**
 * undefined
 * @param { Object } data 请求参数
 * {
 *   start undefined
 *   pageSize undefined
 *   page undefined
 *   isPage undefined
 * }
 */
export function queryType(data) {
  return _fetch({
    url: "backend/goods/type/queryType",
    method: "POST",
    data: data,
    headers: {}
  });
}
/**
 * undefined
 * @param { Object } data 请求参数
 * {
 *   id undefined
 * }
 */
export function unPublish(data) {
  return _fetch({
    url: "backend/goods/type/unPublish",
    method: "POST",
    data: data,
    headers: {}
  });
}